<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

    <h1>hello jsp</h1>

    <form action="${pageContext.request.contextPath}/restful/user" method="post">
<%--        添加隐藏域 改变表单的提交方式--%>
        <input type="hidden"  name="_method" value="PUT">
        <input type="text" name="userName" ><br>
        <input type="password" name="password" ><br>
        <input type="submit" value="提交">
    </form>

</body>
</html>
